//package com.example.extenddemo.demo;
//
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.BeansException;
//import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
//import org.springframework.beans.factory.support.BeanDefinitionRegistry;
//import org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor;
//import org.springframework.stereotype.Component;
//
//@Slf4j
//@Component
//public class TestBeanDefinitionRegistryPostProcessor implements BeanDefinitionRegistryPostProcessor {
//    /**
//     *  在读取项目中的beanDefinition之后执行 可以在这里动态注册自己的beanDefinition，可以加载classpath之外的bean
//     * @param registry
//     * @throws BeansException
//     */
//    @Override
//    public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) throws BeansException {
//        log.info("TestBeanDefinitionRegistryPostProcessor:postProcessBeanDefinitionRegistry");
//    }
//
//    @Override
//    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
//        BeanDefinitionRegistryPostProcessor.super.postProcessBeanFactory(beanFactory);
//        log.info("TestBeanDefinitionRegistryPostProcessor:postProcessBeanFactory");
//    }
//}
